import request from "@/api/request";
import SocketService from "@/utils/socked_service";
//请求商家销量数据
export const getSalesVolume = () => {
  return request({
    method: "get",
    url: "/seller",
  });
};

//获取销量趋势数据
export const getTrendData = () => {
  return request({
    method: "get",
    url: "/trend",
  });
};

//获取地图数据
export const getMapData = () => {
  return request({
    method: "get",
    url: "/map",
  });
};

//请求地区排名数据
export const getRankData = () => {
  return request({
    method: "get",
    url: "/rank",
  });
};

//获取热门销售产品信息
export const getHotData = () => {
  return request({
    method: "get",
    url: "/hotproduct",
  });
};

//获取库存销量模块数据
export const getStockData = () => {
  return request({
    method: "get",
    url: "/stock",
  });
};
